<?php
class amankanParam {
    function __construct() {
    }
    function postMethod($val = null){
        $realPost = isset($_POST) ? $_POST : array();
        $dtPost = isset($val) ? $val : $realPost;
        if (isset($dtPost)) {
            foreach ($dtPost as $key => $value) {
                $arr[$key] = is_array($value) ? $this->postMethod($value) : mysql_real_escape_string($value);
            }
        }
        return isset($arr) ? $arr : null;
    }
    function var_dump($d,$ex = true){
        echo '<pre>';
        var_dump($d);
        echo '</pre>';
        if($ex==true){
            exit;
        }
    }
    function getMethod($val =null) {
        $realGet = isset($_GET) ? $_GET : array();
        $dtPost = isset($val) ? $val : $realGet;
        if (isset($dtPost)) {
            foreach ($dtPost as $key => $value) {
                $arr[$key] = is_array($value) ? $this->getMethod($value) : mysql_real_escape_string($value);
            }
        }
        return isset($arr) ? $arr : null;
    }

}
$objParamAman = new amankanParam();